<% #endcoding:utf-8%>
<div class="panel">
  <div class="panel-heading">
    <h3 class="demand-top">更换头像</h3>
  </div>
  <div class="panel-body">
    <p class="text-center"><%=avatar userinfo,"img-large"%></p>
    <div class="text-center">
      <%=form_for @profile,url:'/changeavatar',:html=>{:method=>'post'}  do |f|%>
          <%=f.file_field :avatar%>
          <%= f.hidden_field :avatar_cache %>
          <%=f.submit "上传",:class=>'btn btn-default'%>
      <%end%>
    </div>
  </div>

</div>